package com.flyco.modules.sms.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.flyco.common.aspect.annotation.Dict;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 抽奖记录
 * @Author: flyco
 * @Date:   2020-04-16
 * @Version: V1.0
 */
@Data
@TableName("sms_lottery_history")
public class SmsLotteryHistory implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
	private Long id;
	/**抽奖活动id*/
	private Long lotteryId;
	/**奖项id*/
    @Excel(name = "奖项id", width = 15)
	private Long lotteryItemId;
	/**会员id*/
    @Excel(name = "会员id", width = 15)
	private Long memberId;
	/**已混淆的会员名*/
    @Excel(name = "已混淆的会员名", width = 15)
	private String memberName;
	/**是否删除*/
    @Excel(name = "是否删除", width = 15)
	@TableLogic
	private Integer delFlag;
	/**用户状态 1无动作，2待用户补充 3用户已经提交 4服务方已处理*/
    @Excel(name = "用户状态 1无动作，2待用户补充 3用户已经提交 4服务方已处理", width = 15)
	@Dict(dicCode = "lottery_history_status")
	private Integer status;
	/**奖品级别： 9高价值奖，2普级奖， 1没有中奖*/
    @Excel(name = "奖品级别： 9高价值奖，2普级奖， 1没有中奖", width = 15)
	private Integer level;
	/**接收类型 coupon券; product需要填写收货地址*/
    @Excel(name = "接收类型 coupon券; product需要填写收货地址", width = 15)
	@Dict(dicCode = "lottery_prize_type")
	private String prizeType;
	/**创建人*/
    @Excel(name = "创建人", width = 15)
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date createTime;
	/**奖品bean的主id， sms_coupon.id(if prize_type==coupon)*/
    @Excel(name = "奖品bean的主id， sms_coupon.id(if prize_type==coupon)", width = 15)
	private Integer prizeMainId;
	/**奖品bean的配置id， sms_coupon_gant.id(if prize_type==coupon)*/
    @Excel(name = "奖品bean的配置id， sms_coupon_gant.id(if prize_type==coupon)", width = 15)
	private Integer prizeSubId;
	/**领取时间*/
	@Excel(name = "领取时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date getTime;
	/**领取类型:order/bill*/
	@Excel(name = "领取类型:order/bill", width = 15)
	private String getType;
	/**领取单id*/
	@Excel(name = "领取单id", width = 15)
	private Integer getId;
}
